home *** CD-ROM | disk | FTP | other *** search
/ Aminet 28 / Aminet 28 (1998)(GTI - Schatztruhe)[!][Dec 1998].iso / Aminet / dev / misc / gms_config.lha / Config / config_data.c < prev    next >
Encoding:
C/C++ Source or Header  |  1998-09-06  |  2.0 KB  |  60 lines

  1. /* Module Header
  2. ** -------------
  3. ** This object file must be linked right at the start of the output file.
  4. ** It is very important that the "struct ModHeader" part stays at the top,
  5. ** or the module will not work.
  6. */
  7.  
  8. #define DPKNOBASE 1
  9.  
  10. #include <proto/dpkernel.h>
  11.  
  12. extern BYTE ModAuthor[];
  13. extern BYTE ModDate[];
  14. extern BYTE ModCopyright[];
  15. extern BYTE ModName[];
  16. extern struct Function JumpTableV1[];
  17.  
  18. extern LIBFUNC LONG CMDInit(mreg(__a0) struct Module *, mreg(__a1) struct DPKBase *, mreg(__a2) struct GVBase *, mreg(__d0) LONG, mreg(__d1) LONG);
  19. extern LIBFUNC void (CMDClose)(mreg(__a0) struct Module *);
  20. extern LIBFUNC LONG (CMDExpunge)(void);
  21. extern LIBFUNC LONG (CMDOpen)(mreg(__a0) struct Module *);
  22.  
  23. #define CONFIG_ModVersion  1
  24. #define CONFIG_ModRevision 0
  25.  
  26. struct ModHeader ModHeader = {
  27.   MODULE_HEADER_V1,   /* Version of this structure */
  28.   CMDInit,            /* Init() */
  29.   CMDClose,           /* Close() */
  30.   CMDExpunge,         /* Expunge() */
  31.   JMP_LVO,            /* Type of module table to be generated for our own use */
  32.   0,                  /* Reserved */
  33.   ModAuthor,          /* Author that wrote the module */
  34.   JumpTableV1,        /* Pointer to function list that we want to use */
  35.   CPU_68000,          /* The type of CPU that this module is compiled for */
  36.   CONFIG_ModVersion,  /* Version of this module */
  37.   CONFIG_ModRevision, /* Revision of this module */
  38.   DPKVersion,         /* Required DPK Version */
  39.   DPKRevision,        /* Required DPK Revision */
  40.   CMDOpen,            /* Open() */
  41.   0,                  /* Reserved */
  42.   ModCopyright,       /* Copyright and Company information */
  43.   ModDate,            /* The date of module compilation */
  44.   ModName,            /* The name of this module */
  45.   JMP_LVO,            /* The dpkernel jump table that we want */
  46.   0                   /* Reserved */
  47. };
  48.  
  49. struct GVBase    *GVBase;
  50. struct SysObject *ConfigObject;
  51. struct Module    *ConfigMod;
  52. struct Module    *FileMod;
  53. struct Module    *StrMod;
  54. struct ModPublic *Public;
  55.  
  56. APTR DPKBase;
  57. APTR FILBase;
  58. APTR STRBase;
  59. APTR CNFBase;
  60.